package com.yanxu;

import com.yanxu.domain.ArticleJava;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

/**
 * @author 折戟沉沙铁未销
 * @version V1.0
 * @date 2025/4/13-2025
 * @Description: 这里用一句话描述这个类的作用
 */
public class Test5 {
    public static void main(String[] args) throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException {
        Class<ArticleJava> articleJavaClass = ArticleJava.class;
        ArticleJava articleJava = articleJavaClass.newInstance();
        Constructor<ArticleJava> declaredConstructor = articleJavaClass.getDeclaredConstructor();
        declaredConstructor.setAccessible(true);
        ArticleJava articleJava1 = declaredConstructor.newInstance();

        System.out.println(articleJava);
        System.out.println(articleJava1);


    }
}